﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class yiwutong_web_success : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["InfoArray"] != null && Session["InfoArray"].ToString() != "")
            {
                #region InfoArray数组生成

                string[] strInfoarray;

                strInfoarray=(string[])Session["InfoArray"];

                //预约时间
                Label1.Text = strInfoarray[0]; 
                //患者姓名
                Label2.Text = strInfoarray[1];
                //性别
                Label3.Text = strInfoarray[2];
                //年龄
                Label4.Text = strInfoarray[3];
                //联系地址
                Label5.Text = strInfoarray[4];
                //手机
                Label6.Text = strInfoarray[5];
                //预约医院
                Label7.Text = strInfoarray[6];
                //预约留言
                Label8.Text = strInfoarray[7];
                //预约科类
                Label9.Text = strInfoarray[8];
                //医生
                //Label10.Text = strInfoarray[9];
                //地址
                //Label11.Text = strInfoarray[10];

                //移除Session
                Session.Remove("InfoArray");

                #endregion
            }
            else
            {
                Response.Redirect("index.aspx");
            }
        }
    }
}
